package com.mi.service;

import com.mi.entity.MyPages;
import com.mi.entity.NewsEntity;

import javax.swing.text.html.parser.Entity;
import java.util.List;

public interface NewsService {
    //根据分类n_category条件查询新闻
    public MyPages<NewsEntity> queryNews(NewsEntity  ne);

    //根据分类n_category条件查询新闻
    public MyPages<NewsEntity> queryNewss(NewsEntity newsEntity);

    //根据新闻名模糊查询
    public MyPages<NewsEntity> fuzzyQuery(NewsEntity ne);

    //新闻ID 查询新闻详情
    public NewsEntity queryDetails(int n_id);

    /**
     * 添加新闻
     * @param newsEntity
     * @return
     */
    public boolean addNews(NewsEntity newsEntity);

    /**
     * 删除新闻
     * @param n_id
     * @return
     */
    public boolean delNews( String[] n_id);

    /**
     * 修改新闻状态
     * @param newsEntity
     * @return
     */
    public boolean updNewsStatus(NewsEntity newsEntity);


}
